<template>
    <van-dialog v-model:show="show" title="请先登陆" show-cancel-button class="dialog"
        :overlayStyle="{ backgroundColor: 'rgba(0, 0, 0, 0.3)' }" width="75%" :before-close="handleBeforeClose">
        <div> 解锁更多内容</div>
    </van-dialog>
</template>

<script setup lang="ts">
const { t } = useI18n()
const show = ref(true)
// 打开弹窗确认事件
const handleBeforeClose = (action: string, done: () => void) => {
    if (action === 'confirm') {
        // if (centerPhone.value.every(code => code !== '')) {
        //     const code = centerPhone.value.join('');
        //     console.log('验证码：', code);
        //     getCode.value = true
        //     onCancel()
        // } else {
        //     isError.value = true;
        // }
    } else {
        // onCancel()
    }
};
</script>

<style scoped></style>